package com.sixth.controller;

import com.sixth.entity.Subject;
import com.sixth.service.SubjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @program: self-tui-education
 * @description:
 * @author: 高振杨
 * @create: 2022-05-08 20:05
 **/
@RestController
@RequestMapping("/core/subject")
public class SubjectController {

    @Autowired
    private SubjectService subjectService;

    @PostMapping("/findAllSubject")
    public List<Subject> findAllSubject(){
        return subjectService.findAllSubject();
    }
}
